package com.bean;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: cxt
 * @time: 2021/2/20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PayBean {

    private Integer id;

    private String name;

    private Integer pid;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private PayBean[] children;

    public PayBean(Integer id, String name, Integer pid) {
        this.id = id;
        this.name = name;
        this.pid = pid;
    }
}
